﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainCont.Master" AutoEventWireup="true"
    CodeBehind="EditBillsLedger_Bu.aspx.cs" Inherits="Thksoft.Modal.EditBillsLedger_Bu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../UserCotrols/My97DatePicker/skin/WdatePicker.css" rel="stylesheet"
        type="text/css" />
    <script src="../UserCotrols/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        //关闭页面
        function FORM_CLOSE() {

            var index = top.layer.getFrameIndex(window.name); //获取窗口索引
            try {
                top.$("#layui-layer" + index + " .layui-layer-close").click();
            } catch (e) {
                //强制关闭页面
                try {
                    top.layer.close(index);
                } catch (e) {

                }
            }
        }

        function CheckCustomer() {
            var option = {};
            option.Window = window;
            option.CallBack = function (index, dom) {
                try {
                    var data = top.window.frames["layui-layer-iframe" + index].ModalData;
                    if (data.Text == "") {
                        return;
                    }
                    document.getElementById("<%=FORM_CUSTOMER_ID.ClientID %>").value = data.Value;
                    document.getElementById("<%=txtPayeeCompany.ClientID %>").value = data.Text;
                } catch (e) {

                }

            }
            var textid = document.getElementById("<%=FORM_CUSTOMER_ID.ClientID %>").value;
            if (textid != "") {
                option.Value = "?MODE=SINGELE&ID=" + textid;
            }
            else {
                option.Value = "?MODE=SINGELE";
            }
            top.MessageBox.OpenCustomer(option);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top">
                <div class="main_show_show">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                        <tr>
                            <td class="lefttd">票据种类：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="FORM_Type" CssClass="lblName" runat="server" Width="180px">
                                    <asp:ListItem Value="-1">---请选择---</asp:ListItem>
                                    <asp:ListItem Value="1">银行汇票</asp:ListItem>
                                    <asp:ListItem Value="2">银行本票</asp:ListItem>
                                    <asp:ListItem Value="3">转账支票</asp:ListItem>
                                    <asp:ListItem Value="4">现金支票</asp:ListItem>
                                    <asp:ListItem Value="5">银行承兑汇票</asp:ListItem>
                                    <asp:ListItem Value="6">商业承兑汇票</asp:ListItem>
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>
                            <td class="lefttd">票据编号：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtBillnum" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">出票公司名称（出票人）：
                            </td>
                            <td class="righttd">
                                <%--<input id="txtDRAWERCompany" runat="server" class="txt_input" style="width: 180px;" />--%>
                                <uc2:CtrlCompany runat="server" ID="txtDRAWERCompany" Width="180px" />
                                <span style="color: Red;">*</span>
                            </td>
                            <td class="lefttd">收款公司名称（收款人）：
                            </td>
                            <td class="righttd">
                                <input id="txtPayeeCompany" runat="server" class="txt_input" style="width: 180px;" ondblclick="CheckCustomer()" />
                                <asp:HiddenField runat="server" ID="FORM_CUSTOMER_ID" />
                                <span style="color: Red;">*双击请选择</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">出票人银行名称：
                            </td>
                            <td class="righttd">
                                <%--<input id="txtDRAWERBank" runat="server" class="txt_input" style="width: 180px;" />--%>
                                <asp:DropDownList ID="FORM_BANK_ID" runat="server" Width="180px" AutoPostBack="true" OnSelectedIndexChanged="FORM_BANK_ID_SelectedIndexChanged">
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>
                            <td class="lefttd">收款人银行名称：
                            </td>
                            <td class="righttd">
                                <input id="txtPayeeBank" runat="server" class="txt_input" style="width: 180px;" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">出票人账户：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="txtZnum" runat="server" Width="180px">
                                </asp:DropDownList>
                                <%--<input id="txtZnum" runat="server" class="txt_input" style="width: 180px;" />--%>
                                <span style="color: Red;">*</span>
                            </td>
                            <td class="lefttd">收款人账户：
                            </td>
                            <td class="righttd">
                                <input id="txtDfzh" runat="server" class="txt_input" style="width: 180px;" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">付款人：
                            </td>
                            <td class="righttd">
                                <input id="txtDRAWEENAME" runat="server" class="txt_input" style="width: 180px;" />
                            </td>
                            <td class="lefttd">收款人联系电话：
                            </td>
                            <td class="righttd">
                                <input id="txtPayeeNumber" runat="server" class="txt_input" style="width: 180px;" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">出票日期：
                            </td>
                            <td class="righttd">
                                <input id="txtDateStart" runat="server" class="Wdate" style="width: 100px;" type="text"
                                    onclick=" WdatePicker()" />
                                <span style="color: Red;">*</span>
                            </td>
                            <td class="lefttd">票据到期日：
                            </td>
                            <td class="righttd">
                                <input id="txtDateEnd" runat="server" class="Wdate" style="width: 100px;" type="text"
                                    onclick=" WdatePicker()" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">承兑时间：
                            </td>
                            <td class="righttd">
                                <input id="txtACCEPTANCETIME" runat="server" class="Wdate" style="width: 100px;" type="text"
                                    onclick=" WdatePicker()" />
                            </td>
                            <td class="lefttd">收票时间：
                            </td>
                            <td class="righttd">
                                <input id="txtCOLLECTTICKETSTIME" runat="server" class="Wdate" style="width: 100px;"
                                    type="text" onclick=" WdatePicker()" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">票据期限（月）：
                            </td>
                            <td class="righttd">
                                <input id="txtTERMOFBILL" runat="server" class="txt_input" style="width: 100px;" />
                            </td>
                            <td class="lefttd">能否转让：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlCheckType" runat="server" Width="100px" CssClass="lblName">
                                    <asp:ListItem Value="1" Selected="True">能</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">出票金额：
                            </td>
                            <td class="righttd">
                                <input id="txtamont1" runat="server" class="txt_input" onkeydown="return NoNumber()"
                                    style="width: 100px;" />
                                <span style="color: Red;">*元</span>
                            </td>
                            <td class="lefttd">支付类型：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlPayType" runat="server" Width="100px" CssClass="lblName">
                                    <asp:ListItem Value="1" Selected="True">转账</asp:ListItem>
                                    <asp:ListItem Value="2">现金</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">份数：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtSUM" Width="100px" runat="server" CssClass="txt_input"></asp:TextBox>
                            </td>
                            <td class="lefttd">票据状态：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlState" runat="server" Width="100px" CssClass="lblName">
                                    <asp:ListItem Value="1" Selected="True">有效</asp:ListItem>
                                    <asp:ListItem Value="0">失效</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">交易合同号（用途）：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtPROJECTCODE" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>
                            </td>
                            <td class="lefttd">项目名称（用途）：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtPROJECTNAME" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">备注：
                            </td>
                            <td colspan="4" class="righttd">
                                <asp:TextBox ID="txtRemark" Width="585px" runat="server" CssClass="txt_input" TextMode="MultiLine" Wrap="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-left: 40%;" colspan="4">
                                <asp:Button ID="btnSave" runat="server" CssClass="bt_css_s" Text="保存" OnClick="btnSave_Click" />&nbsp;
                                <asp:Button ID="Button1" runat="server" CssClass="bt_css_s" Text="返回" OnClick="btnReturn_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>